﻿using AzureDiagMon.Common.Dtos;
using AzureDiagMon.Common.Mvvm;

namespace AzureDiagMon.ViewModels.Entities
{
    public class StorageAccountViewModel : EntityViewModel<StorageAccountDto>
    {
        public StorageAccountViewModel(StorageAccountDto entity) : base(entity) { }

        public string AccountName
        {
            get { return Entity.AccountName; }
            set
            {
                Entity.AccountName = value;
                EntityFieldUpdated("AccountName");
            }
        }

        public string AccessKey
        {
            get { return Entity.AccessKey; }
            set
            {
                Entity.AccessKey = value;
                EntityFieldUpdated("AccessKey");
            }
        }

        public override string ToString()
        {
            return Entity.AccountName;
        }

    }
}